<template>
  <van-action-sheet v-model="isshow" title="宝贝价格" @cancel="onCancel" close-on-click-overlay='true' @click-overlay="onCancel">
    <input-price></input-price>
  </van-action-sheet>
</template>

<script>
  import Vue from 'vue';
  import {mapState,mapMutations} from 'vuex'
  import { ActionSheet } from 'vant';
  import { Divider } from 'vant';
  import InputPrice from 'price/components/input'
  Vue.use(Divider);
  Vue.use(ActionSheet);
   export default {
     computed:{
       ...mapState({
         isshow:'show'
       })
     },
     methods:{
       // 点击取消，同时更新
       onCancel(){
          this.closeTheSheet()
       },
       ...mapMutations({
         closeTheSheet:'closeTheSheet'
       })
     },
     components:{
       InputPrice
     }
  }
</script>

<style>
</style>
